<?php
/**
 * Created by PhpStorm.
 * User: liuyang
 * Date: 2018/9/29
 * Time: 14:14
 */


//加密
function bhmd5($str = '', $type = false, $time = 0, $key = '')
{
    if ($str == '') return false;
    $type = ($type) ? 'DECODE' : 'ENCODE';
    return model('tool')->bhmd5($str, $type, $key, $time);
}